package com.yuewen.permissioncheck.asm.checker;

/**
 * HardwareAddress
 *
 * @author zhanglulu
 */
public class GetHardwareAddressPermission extends BasePermission {
  @Override
  boolean check(InvokeParam param) {
    return "getHardwareAddress".equals(param.methodName)
      && "()[B".equals(param.methodDesc)
      && "java/net/NetworkInterface".equals(param.methodOwnClass);
  }

  @Override
  String invokeHookMethodName() {
    return "invokeGetHardwareAddress";
  }
}
